//
//  UIAlertController+Helper.h
//  ReplyAssistant
//
//  Created by liaozhenming on 2018/11/26.
//  Copyright © 2018 KK. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^UIAlertControllerCancelHandle)(void);
typedef void(^UIAlertControllerSureHandle)(void);
typedef void(^UIAlertControllerSelectedHandle)(NSInteger index);

@interface UIAlertController (Helper)

+ (void)kk_alertShowTitle:(NSString*)title message:(NSString*)message cancelTitle:(nullable NSString*)cancelTitle cancelHandle:(nullable UIAlertControllerCancelHandle)cancelHandle sureTitle:(nullable NSString*)sureTitle sureHandle:(nullable UIAlertControllerSureHandle)sureHandle;


+ (void)kk_actionSheetShowTitle:(NSString*)title message:(NSString*)message cancelTitle:(NSString*)cancelTitle cancelHandle:(nullable UIAlertControllerCancelHandle)cancelHandle sureTitle:(NSString*)sureTitle sureHandle:(nullable UIAlertControllerSureHandle)sureHandle otherButtonTitles:(NSArray*)buttonTitles selectedHandle:(UIAlertControllerSelectedHandle)selectedHandle;

@end

NS_ASSUME_NONNULL_END
